package org.example.mallsystem1104.annotation;

import org.example.mallsystem1104.entity.AuthorityType;

import java.lang.annotation.*;

//保留注解到项目运行时
@Retention(RetentionPolicy.RUNTIME)
//注解作用在方法和类上
@Target({ElementType.TYPE})
@Documented
public @interface Authority {
    AuthorityType value() default AuthorityType.requireLogin;

}
